﻿namespace System.Windows
{
    public static class RectExtension
    {
        public static Point GetCenter(this Rect rect)
        {
            var x = rect.Left + rect.Width / 2;
            var y = rect.Top + rect.Height / 2;
            return new Point(x, y);
        }
    }
}
